package com.example.virgaonline;

import android.view.MotionEvent;
import android.view.View;
import android.widget.TextView;

public class MenuTouchListener implements View.OnTouchListener {

	@Override
	public boolean onTouch(View view, MotionEvent mEvent) {
		switch(mEvent.getAction()){
		case MotionEvent.ACTION_DOWN:
			((TextView) view).setTextColor(0xFF6A5ceD);
			break;
		case MotionEvent.ACTION_CANCEL:
		case MotionEvent.ACTION_UP:
			((TextView) view).setTextColor(0xF9f9f9f9);
			break;
		}
		return false;
	}

}
